var ns;
app = new Vue({
    el: '#app',
    data: {
        show_detail: true,
        OwnerName: '',
        show_history: false,
        show_detail_haslist: true,
        show_history_haslist: true,
        EndTime:'',
        is_active1:'',
        is_active2:'',
    },
    methods: {
        get_data: function() {

        },
        randomSwitchBtn: function(index) {
            var that = this;
            if (index == 0) {
                that.show_detail = true;
                that.show_history = false;
                that.is_active1 = 'aui-active';
                that.is_active2 = '';
                return
            } else if (index == 1) {
                that.show_detail = false;
                that.show_history = true;
                that.is_active1 = '';
                that.is_active2 = 'aui-active';
                return
            }
        },
        get_feehistory_data: function() {

        },
        openWin: function(item, params) {
            var that = this;
            if (item.url == '') {
                return;
            }
            params = params || {
                status: -1
            };
            ns.openWin(item.url, item.name, params);
        },
    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.is_active1 = 'aui-active';
};
